<?php
	/**
	 * REGISTER COUPONX SIDE BAR
	 */
    add_action('widgets_init', 'couponx_widgets_init');
	function couponx_widgets_init()
	{
		// Slider sidebar
		register_sidebar(array(
			'name' => __('Slider', 'CouponX theme'),
			'id' => 'cs-slider-sidebar',
			'description' => __('Appears on posts and pages except the optional Front Page template, which has its own widgets',
				'CouponX theme'),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget' => '</aside>',
			'before_title' => '<h3 class="widget-title">',
			'after_title' => '</h3>',
			));
		// Content Home sidebar
		register_sidebar(array(
			'name' => __('Content Home', 'CouponX theme'),
			'id' => 'cs-content-sidebar',
			'description' => __('Display widgets at Home page',
				'CouponX theme'),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget' => '</aside>',
			'before_title' => '<h3 class="widget-title">',
			'after_title' => '</h3>',
			));
 		// Content Store detail sidebar
		register_sidebar(array(
			'name' => __('Content Store Detail', 'CouponX theme'),
			'id' => 'cs-content-store-detail-sidebar',
			'description' => __('Display widgets at Store detail page',
				'CouponX theme'),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget' => '</aside>',
			'before_title' => '<h3 class="widget-title">',
			'after_title' => '</h3>',
			));
		// Main sidebar
		register_sidebar(array(
			'name' => __('Main Sidebar', 'CouponX theme'),
			'id' => 'cs-main-sidebar',
			'description' => __('Appears on posts and pages except the optional Front Page template, which has its own widgets',
				'CouponX theme'),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget' => '</aside>',
			'before_title' => '<h3 class="widget-title">',
			'after_title' => '</h3>',
			));
        // Event sidebar
		register_sidebar(array(
			'name' => __('Event Sidebar', 'CouponX theme'),
			'id' => 'cs-event-sidebar',
			'description' => __('Display widgets at Event page',
				'CouponX theme'),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget' => '</aside>',
			'before_title' => '<h3 class="widget-title">',
			'after_title' => '</h3>',
			));
		// Top store & category sidebar
		register_sidebar(array(
			'name' => __('Store & Category Sidebar', 'CouponX theme'),
			'id' => 'cs-text-link-sidebar',
			'description' => __('Appears on posts and pages except the optional Front Page template, which has its own widgets',
				'CouponX theme'),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget' => '</aside>',
			'before_title' => '<h3 class="widget-title">',
			'after_title' => '</h3>',
			));
		// Footer sidebar
		register_sidebar(array(
			'name' => __('Footer', 'CouponX theme'),
			'id' => 'cs-footer-sidebar',
			'description' => __('Appears on posts and pages except the optional Front Page template, which has its own widgets',
				'CouponX theme'),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget' => '</aside>',
			'before_title' => '<h3 class="widget-title">',
			'after_title' => '</h3>',
			));
		// Copyright sidebar
		register_sidebar(array(
			'name' => __('Copyright', 'CouponX theme'),
			'id' => 'cs-copyright-sidebar',
			'description' => __('Appears on posts and pages except the optional Front Page template, which has its own widgets',
				'CouponX theme'),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget' => '</aside>',
			'before_title' => '<h3 class="widget-title">',
			'after_title' => '</h3>',
			));
	}
